package com.zhai.domain.task.service;

import com.zhai.domain.task.model.entity.TaskEntity;

import java.util.List;

/**
 * @Description: 消息服务任务接口
 * @ClassName: ITaskService
 * @Author: zhaiyongxin
 * @Date: 2025/3/5 21:13
 * @Version: 1.0
 */
public interface ITaskService {

    /**
     * 查询未发送消息的任务列表
     * @return
     */
    public List<TaskEntity> queryNoSendMessageTaskList();

    void updateTaskSendMessageCompleted(String userId, String messageId);

    void updateTaskSendMessageFail(String userId, String messageId);

    void sendMessage(TaskEntity taskEntity);
}
